home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00044.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  893 b   |  36 lines

  1. on enterFrame
  2.   global gPlaySound, audioPath, gCurrLabel, gTourForwardArrow, gTourBackArrow
  3.   if the frameLabel <> 0 then
  4.     gCurrLabel = the frameLabel
  5.   end if
  6.   if gPlaySound then
  7.     gPlaySound = 0
  8.     frameNum = the frame
  9.     soundFile = getAudioFile(frameNum)
  10.     sound playFile 1, audioPath & soundFile & ".AIF"
  11.   end if
  12.   Inscope(gTourForwardArrow)
  13.   Inscope(gTourBackArrow)
  14. end
  15.  
  16. on exitFrame
  17.   global goOn, firstTime, gMenuButton, gMenuExit, gPlaySound, gTourForwardArrow, gTourBackArrow
  18.   repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
  19.     doRollover(rc)
  20.   end repeat
  21.   if soundBusy(1) then
  22.     go(the frame)
  23.   else
  24.     repeat with z = 2 to 10
  25.       if not (the memberNum of sprite z = 0) then
  26.         sprite(z).visible = 1
  27.         updateStage()
  28.       end if
  29.     end repeat
  30.     gPlaySound = 1
  31.     goOn = 0
  32.     firstTime = 1
  33.     go(#next)
  34.   end if
  35. end
  36.